=====================================================================================================================================================================
=====================================================================================================================================================================
						LanguageSupport UDF
=====================================================================================================================================================================
=====================================================================================================================================================================
Install:
Copy the LanguageSupport.au3 in your UDF folder.

Usage:
#include <LanguageSupport.au3>
The UDF needs to be initialized before you can make use of it:
_LangInit($PathToYourXMLFile)



=====================================================================================================================================================================
=====================================================================================================================================================================
						Language Transmitter INFO
=====================================================================================================================================================================
=====================================================================================================================================================================

This is the Language Transmitter, which lets you send strings from your Scite-Project directly into a xml file.

"Installation"
1. If you do not have done yet, set a User Tools Path for scite (so you do not loose your data upon computer reset):
	- Open SciTEUser.properties
	- set a path for example: user.tools.path=C:\MyTools

2. To "install" this tool to your scite config add then the following to your au3.properties (Options -> Open au3.properties):
# 35 mataran's Language Transmitter
# save.before 1 = save, 2 = do not save
command.35.$(au3)=$(user.tools.path)\LanguageTransmitter.exe /in "$(FilePath)"
command.input.35.*=$(CurrentSelection)
command.subsystem.35.$(au3)=1
command.name.35.$(au3)=Language Transmitter
command.shortcut.35.$(au3)=Alt+A
command.save.before.35.$(au3)=1
command.replace.selection.35.$(au3)=1
command.quiet.35.$(au3)=1# 35 mataran's Language Transmitter

=====================================================================================================================================================================

INFO, USAGE AND TIPS:
Quick SetUp for new projects
	- To quickly add the Lang_Init command press Alt+A in your open Scite-AutoIt-project and click cancel on the InputBox
	- This will set up the ABSOLUTE path to this projects language file, relative paths do work as well!

Strings
	If you already have Strings set up in your au3 file:
		Example: MsgBox(16, 'Error', 'This is some error message')
		- simply mark the first string e.g. 'Error' with your mouse and press Alt+A, the programm will then guide you through the quick set up.
		- select the second string and press again... Alt+A :)
	
	If you wish to directly add a string to the xml file:
		- Press Alt+A and enter a Name for the Variable (= KEY in an Ini File!)
		- Enter a Value for the key
		- done

	New Lines, Variables etc.
		The now easiest and fastest way to add returns (CRLF, CR, LF) to your script is by using \n, just as you would do so with StringFormat
			- The Language Transmitter will automatically parse your string and paste the StringFormat command into SciTE for you!
		Using Variables and Macros etc. is a lot easier as well:
		- Given the example strings (I just made them up):
			"Health: " & $iHP
			"Error: "& @error &@CRLF & "This means that " & $data & " is not declared"
		- The parser will automatically detect the macros and variables in the string, as well as at the end of the string and return a StringFormatted string into SciTE for you:
			StringFormat(s('key_Health'), $iHP) and in the xml file: <string name="key_Health">Health: %s</string>
			StringFormat(s('key_Error'), @error, $data), xml file: <string name="key_Error">Error: %s\nThis means that %s is not declared</string>
				- note that here @CRLF has been replaced by \n and is therefore not needed as variable of StringFormat!
				
	Try this string:
	"Hello & you & me I'm a Test!" & @CRLF & @CRLF & "Aren't ya havin' a nice day?" & ' "Test" ' & "my chars' hp: " & $aChar[0] & ' Take this "switch"!' & " And these last vars: "&$var1& @crlf&$var3

	
=====================================================================================================================================================================
=====================================================================================================================================================================
						Language File Checker INFO
=====================================================================================================================================================================
=====================================================================================================================================================================

ENGLISH
To check a new program that uses the LanguageSupport UDF:
 - compile the au3 file using the following commands (add them on top of your script):
 #AutoIt3Wrapper_Run_Au3Stripper=y
 #Au3Stripper_Parameters=/mo

 - start the Language File Checker and select the now existing _stripped.au3 file
 
If you have multiple programs that are using the same language file (two final .exe files e.g. a "client and server" configuration):
 - compile ALL your programs with the above named parameters
 - start the Language File Checker and select using multi-select (CTRL) all _stripped.au3 files
 - the File Checker will now treat all individual _stripped files as one big project and scan for all variables
 
=====================================================================================================================================================================

GERMAN

Neues Programm checken:
 - au3 neu compilieren mit folgenden commands:

 #AutoIt3Wrapper_Run_Au3Stripper=y
 #Au3Stripper_Parameters=/mo

 - danach den Language File Checker starten und die _stripped.au3 datei auswhlen


Bei Gruppenprogrammen / Mehrere Programme, die auf die selbe .xml Sprachdatei zugreifen:
 - bei allen programmen den compiler mit obigen commands laufen lassen
 - Language File Checker starten und die via multiselect (STRG) alle _stripped.au3 dateien auswhlen
 - der Checker wird nun alle dateien in eine Data Variable lesen um alle zusammen abzuarbeiten / zu checken.
 
 =====================================================================================================================================================================